package com.competition.web.admin.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.dao.base.IBaseMapper;
import com.competition.web.entity.UmsAdmin;
import com.competition.web.entity.UmsAdminExample;

public interface UmsAdminMapper extends IBaseMapper<UmsAdmin>{
    long countByExample(UmsAdminExample example);

    int deleteByExample(UmsAdminExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UmsAdmin record);

    int insertSelective(UmsAdmin record);

    List<UmsAdmin> selectByExample(UmsAdminExample example);
    
    public List<UmsAdmin> getUserListBySearch(@Param("keyword") String keyword, @Param("startPage") Integer startPage,  @Param("pageNumber")Integer pageNum);

    UmsAdmin selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example);

    int updateByExample(@Param("record") UmsAdmin record, @Param("example") UmsAdminExample example);

    int getUserCountListBySearch(@Param("keyword") String keyword);
    
    int updateByPrimaryKeySelective(UmsAdmin record);

    int updateByPrimaryKey(UmsAdmin record);
}